<?
    $log = (isset($_SESSION["login"])) ? $_SESSION["login"] : "";
    $msg = (isset($_SESSION["loi"])) ? $_SESSION["loi"] : "";
    
    $adm_logged = (isset($_SESSION["user"])) ? $_SESSION["user"] : false;
    $pas_logged = (isset($_SESSION["pass"])) ? $_SESSION["pass"] : false;

    if(($adm_logged == true) or ($pas_logged == true)){	    
        header("Location: index.php");
	exit;    		
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Administrator Cpanel Login</title>
</head>
<link rel="stylesheet" type="text/css" href="admin.css">
<body class="login">

    <div class="panel login-box">
      <h2>Login Form</h2>
      <hr>
        <? echo $msg; ?>
		<form id="form" action="check_login.php" method="post">

        <div class="row">
           <label>Username:</label> 
           <input type="text" name="t1" size="25" id="t1" tabindex="1"/>
        </div>
         <div class="row">
            <label>Password:</label>
            <input type="password" name="t2" size="25" id="t2" tabindex="2"/>
        </div>

        <div class="row submit-row">
                <input name="cmd" type="submit" id="cmd" value="Login" tabindex="4">
        </div>
    </form>
     <div class="back">
    	<a href="../">←﻿ Back</a>
    </div>
    </div>
</body>
</html>